using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class PhotoPermissions : FlickrObject
    {
        public PhotoPermissions():base(){}
        public PhotoPermissions(FlickrConnection connection) : base(connection){}
        
        [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
        public string PhotoId;

        [XmlAttribute("ispublic", Form=XmlSchemaForm.Unqualified)]
        public int IsPublic;
    
        [XmlAttribute("isfriend", Form=XmlSchemaForm.Unqualified)]
        public int IsFriend;
    
        [XmlAttribute("isfamily", Form=XmlSchemaForm.Unqualified)]
        public int IsFamily;

        [XmlAttribute("permcomment", Form=XmlSchemaForm.Unqualified)]
        public PermissionComment PermissionComment;

        [XmlAttribute("permaddmeta", Form=XmlSchemaForm.Unqualified)]
        public PermissionAddMeta PermissionAddMeta;
    }
}